package test;


import com.ld.zxw.config.Config;
import com.ld.zxw.core.LDConfig;
import com.ld.zxw.core.LucenePlugin;
/**
 * config
 * @author zxw
 *
 */
public class DemoConfig extends LDConfig{
	
	/**
	 * 以下是基础配置  开启动态词库 优先使用本地词库
	 */
	@Override
	public void basicsConfig() {
		Config config = new Config();
		config.setLucenePath("d:/LuceneHome/core/");
		config.setHighlight(true);
		LucenePlugin lucenePlugin = new LucenePlugin();
		lucenePlugin.putDataSource(config, "test", "test");
		lucenePlugin.start();
	}
}
